package com.chinacoal.hr.levelapi.controller;

import com.chinacoal.hr.levelapi.api.FileFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: YunTao.Li
 * @create: 2019-12-02 16:08
 * @description:
 **/
@RestController
public class Test {

    @RequestMapping("/test")
    @ResponseBody
    public String test() {
        String result = "test1";
        System.out.println(result);
        String url = "M00/00/09/rBQIfF3NKAmAOkpRAABbwoxVd_o95.xlsx";
        try {
//            ResponseEntity<byte[]> res = fileFeignClient.downLoadSingleDoc("url");
//            System.out.println("code:" + res.getStatusCode() + " value:" + res.getStatusCodeValue());
        } catch (Exception e) {
            e.printStackTrace();
        }
        return result;
    }
}
